def a1(a,b):
    return(a+b)
def a2(a,b):
    return(a-b)
def a3(a,b):
    return(a*b)
def a4(a,b):
    return(a/b)

flag = True
while flag:
    a = int(input())
    b = int(input())
    o = input()
    if o == "+":
        print(a1(a,b))
    elif o == "-":
        print(a2(a,b))
    elif o == "*":
        print(a3(a,b))
    elif o == "/":
        if b == 0:
            print("Error")
        else:
            print(a4(a,b))
    if input("y or n\n") == 'n':
        flag = False
    else  :
        flag = True